package before;

public class Char {
	public static void main(String[] args){
		char a = 'A';
		byte bytenum=(byte)a;
		short shortnum=(short)a;
		int intnum=(int)a;
		long longnum=(long)a;
		System.out.println(bytenum);
		System.out.println(shortnum);
		System.out.println(intnum);
		System.out.println(longnum);
		Rechar();
	}
	public static void Rechar(){
		byte byteTochar = 102;
		short shortTochar = 103;
		int intTochar = 104;
		long longTochar = 105;
		char charTobyte = (char)byteTochar;
		char charToshort = (char)shortTochar;
		char charToint = (char)intTochar;
		char charTolong = (char)longTochar;
		System.out.println("byteTochar="+charTobyte);
		System.out.println("shortTochar="+charToshort);
		System.out.println("intTochar="+charToint);
		System.out.println("longTochar="+charTolong);
	}
}
